#!/bin/sh

tomcat_id=`ps -ef | grep FrenchExcelProject.jar | grep -v "grep" | awk '{print $2}'`
echo $tomcat_id
for id in $tomcat_id
do
    kill -9 $id
    echo "killed $id"
done

nohup java -jar FrenchExcelProject.jar > ../logs/frenchexcelproject.log &
tail -f ../logs/frenchexcelproject.log